package my.spring.aop.aspect;

import my.spring.aop.advice.Advice;
import my.spring.aop.pointcut.Pointcut;

/**
 * Advisor的默认实现
 * @author fengbo
 * @date 2018/6/30
 */
public class DefaultPointcutAdvisor implements Advisor {

    private Advice advice;
    private Pointcut pointcut;

    public DefaultPointcutAdvisor(Advice advice, Pointcut pointcut) {
        this.advice = advice;
        this.pointcut = pointcut;
    }

    @Override
    public Advice getAdvice() {
        return advice;
    }

    @Override
    public Pointcut getPointcut() {
        return pointcut;
    }
}
